package persistence;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the Activity database table.
 * 
 */
@Entity
public class Activity implements Serializable {
	private static final long serialVersionUID = 1L;
	private int idActivity;
	private String activName;
	private Set<Firm> firms;

    public Activity() {
    }


	@Id
	public int getIdActivity() {
		return this.idActivity;
	}

	public void setIdActivity(int idActivity) {
		this.idActivity = idActivity;
	}


	public String getActivName() {
		return this.activName;
	}

	public void setActivName(String activName) {
		this.activName = activName;
	}


	//bi-directional many-to-many association to Firm
	@ManyToMany(mappedBy="activities")
	public Set<Firm> getFirms() {
		return this.firms;
	}

	public void setFirms(Set<Firm> firms) {
		this.firms = firms;
	}
	
}